Delete Registry 

A Delete Registry section deletes a subkey or value name from the registry. The del-registry-section name must appear in a DelReg item in an Install3AN5O2 section.

A Delete Registry section can contain any number of items. Each item deletes one subkey or value name from the registry.

[del-registry-section]

reg-root-string, subkey, [value-name]

[reg-root-string, subkey, [value-name]]

.

.

.

 

reg-root-string

Registry root name. This parameter can be one of the following values:

HKCR

Same as HKEY_CLASSES_ROOT.

HKCU   

Same as HKEY_CURRENT_USER.

HKLM    

Same as HKEY_LOCAL_MACHINE.

HKU     

Same as HKEY_USERS.

HKR     

Relative from the key passed into SetupInstallFromInfSection.

 

subkey

Identifies the subkey to delete. Has the form key1\key2\key3... This parameter can be expressed as a replaceable string. For example, you could use %Subkey1% where the string to replace %Subkey1% is defined in the Strings22R4H3P section of the INF file.

value-name

Optional. Identifies the value name for the subkey. The value-name parameter can be expressed as a replaceable string. For example, you could use %Valname1% where the string to replace %Valname1% is defined in the Strings section of the INF file.